﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DataFrameworkAccess.Entity;
using Xinkui.Spider.DataAccess.Attributes;

namespace Xinkui.Spider.DataAccess
{
    public class CompanyEntity
    {
        /// <summary>
        /// 
        /// </summary>
        [DataMapping("CompanyID", DbType.Int32)]
        public System.Int32 CompanyID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("CatalogId", DbType.String)]
        public System.String CatalogId { get; set; }


        /// <summary>
        /// 抓取地址
        /// </summary>
        [DataMapping("SpiderLink", DbType.String)]
        public System.String SpiderLink { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("CompanyName", DbType.String)]
        public System.String CompanyName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("CnCompanyName", DbType.String)]
        public System.String CnCompanyName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("KeyWord", DbType.String)]
        public System.String KeyWord { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("CompanyDescription", DbType.String)]
        [SpiderAttribute("")]
        public System.String CompanyDescription { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("BussinessType", DbType.Int32)]
        public System.Int32 BussinessType { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("MainProduct", DbType.String)]
        public System.String MainProduct { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("CompanyEmail", DbType.String)]
        public System.String CompanyEmail { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("CountryID", DbType.Int32)]
        public System.Int32 CountryID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("ProvinceID", DbType.Int32)]
        public System.Int32 ProvinceID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("CityID", DbType.Int32)]
        public System.Int32 CityID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("StreetAddress", DbType.String)]
        public System.String StreetAddress { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("PostCode", DbType.String)]
        public System.String PostCode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("NumberofEmployees", DbType.Int32)]
        public System.Int32 NumberofEmployees { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("NumberofRDEmployees", DbType.Int32)]
        public System.Int32 NumberofRDEmployees { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("Ceo", DbType.String)]
        public System.String Ceo { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("YearEstabished", DbType.String)]
        public System.String YearEstabished { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("IsExport", DbType.Int32)]
        public System.Int32 IsExport { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("IsOE", DbType.Int32)]
        public System.Int32 IsOE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("ExportMarket", DbType.String)]
        public System.String ExportMarket { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("RegisterCapital", DbType.Int32)]
        public System.Int32 RegisterCapital { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("TotalAnnualSales", DbType.Int32)]
        public System.Int32 TotalAnnualSales { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("ExportRatio", DbType.Int32)]
        public System.Int32 ExportRatio { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("TypicalClients", DbType.String)]
        public System.String TypicalClients { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("OwnershipType", DbType.Int32)]
        public System.Int32 OwnershipType { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("PhoneNum", DbType.String)]
        public System.String PhoneNum { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("FaxNum", DbType.String)]
        public System.String FaxNum { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("WebSite", DbType.String)]
        public System.String WebSite { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("Logo", DbType.AnsiString)]
        public System.String Logo { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("ImagePhoto", DbType.AnsiString)]
        public System.String ImagePhoto { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("MemberType", DbType.Int16)]
        public System.Int16 MemberType { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("CreateDate", DbType.DateTime)]
        public System.DateTime CreateDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("CreateIp", DbType.String)]
        public System.String CreateIp { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("UpdateDate", DbType.DateTime)]
        public System.DateTime UpdateDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("UpdateIp", DbType.String)]
        public System.String UpdateIp { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("AuditStatus", DbType.Int16)]
        public System.Int16 AuditStatus { get; set; }


        private List<ProdcutEntity> _ProductList;

        /// <summary>
        /// 产品列表
        /// </summary>
        public List<ProdcutEntity> ProductList
        {
            get
            {
                if (_ProductList == null)
                {
                    _ProductList = new List<ProdcutEntity>();
                }
                return _ProductList;
            }
        }


        /// <summary>
        /// 是否已记录到数据库 
        /// 0：未记录  2：已记录
        /// </summary>
        public int IsSaveDB { get; set; }

        /// <summary>
        /// 是否新抓取
        /// 0：旧 1：新
        /// </summary>
        public int IsNew { get; set; }
    }
}
